package com.neusoft.yiyang.task.client;

import com.neusoft.yiyang.common.entity.medical.DrugDict;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "medical-service")
public interface DrugClient {

    //根据drugId获取药品
    @GetMapping("/drug-dicts/getByDrugId/{drugId}")
    DrugDict getByDrugId(@PathVariable Integer drugId);
}
